package com.example.netlib;

/**
 * @author 陈章
 * create at 2021/7/8 10:39
 * desc:
 */
public class ActionUrl {
    private  String actionUrlPrefix;

    public String GET;
    public String POST;
    public String UPLOAD_SINGLE_FILE;
    public String UPLOAD_MANY_FILE;
    //  public String DOWNLOAD = "https://img0.baidu.com/it/u=22780189,3326714960&fm=26&fmt=auto&gp=0.jpg";
    public String DOWNLOAD = "http://122.152.205.50:8080/test_src_root/s2.mp3";

    public ActionUrl(boolean isServerLocal) {
        actionUrlPrefix = isServerLocal ? "" : "UrlHandleTest/";
        GET = actionUrlPrefix + "get";
        POST = actionUrlPrefix + "post";
        UPLOAD_SINGLE_FILE = actionUrlPrefix + "uploadSingleFile";
        UPLOAD_MANY_FILE = actionUrlPrefix + "uploadManyFile";
    }
}
